package com.example.treehole.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
//评论
@Data
@TableName("comment")
public class Comment {
    @TableId
    public String id;
    public String userid;
    public String toId;
    public String postId;
    public String content;
    public String time;
    public boolean anonymous;
    @TableField(exist = false)
    public User toUser;
    @TableField(exist = false)
    public String nickname;
    @TableField(exist = false)
    public String face;

}
